CREATE TABLE [dbo].[DnnProduct_Classification]
(
[ClassificationId] [int] NOT NULL IDENTITY(1, 1),
[ClassificationName] [nvarchar] (200) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ParentId] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DnnProduct_Classification] ADD CONSTRAINT [PK_DnnProduct_VendorCategory] PRIMARY KEY CLUSTERED  ([ClassificationId]) WITH (FILLFACTOR=85) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_DnnProduct_Classification] ON [dbo].[DnnProduct_Classification] ([ParentId]) WITH (FILLFACTOR=85) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DnnProduct_Classification] WITH NOCHECK ADD CONSTRAINT [FK_DnnProduct_Classification_DnnProduct_Classification] FOREIGN KEY ([ParentId]) REFERENCES [dbo].[DnnProduct_Classification] ([ClassificationId]) NOT FOR REPLICATION
GO
